$def with (search, results, info, start, size, has_next, nstart, rssize, nurl, rsize, tcost, rscount)
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>PyIndexer Desktop Search Result</title></head>
<style type="text/css">

 
<SCRIPT LANGUAGE="JavaScript">

function DriveList()

{

var folder=document.Drive.Name.options[document.Drive.Name.selectedIndex].value;

document.frames['MyComputer'].location.href = folder;

}

function FolderChoose(filelocation)

{

  document.frames['MyComputer'].location.href = filelocation;

}


</script>

<!--
body {
	background-color: #DCDCDC;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 24px;
	color: #336699;
}

td, th {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 24px;
	color: #333333;
}

a {
	color: #3366CC;
	text-decoration: none;
}

form {
	background-color: #CCCC99;
}

.title {
	font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
	line-height: 30px;
	color: #DCDCDC;
}

.subtitle {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 22px;
	font-weight: bold;
  color: #006666;
}

.header {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 24px;
	background-color: #006666;
  color: #DCDCDC;
}

.nav {
	font-family: "";
	font-size: 14px;
	font-weight: normal;
	vertical-align: 0%;
	text-decoration: underline;
}

.navLink {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: bold;
	background-color: #DEDECA;
}

.sidebar {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 18px;
	padding: 3px;
	background-color: #FFFFFF;
}

.sidebarHeader {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 24px;
	color: #FFFFFF;
	background-color: #339999;
}

.sidebarFooter {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 18px;
	background-color: #CCCCCC;
}

.footer {
  font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: bold;
	line-height: 22px;
	color: #333333;
	background-color: #CCCCCC;
}

.legal {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 9px;
	color: #333333;
}

.box1 {
	border-color: #CCCCCC #333333 #333333 #CCCCCC;
	border-width: medium;
  border-style: ridge;
}

.promo {
	font-family: "Times New Roman", Times, serif;
	color: #000033;
}

.titlebar {
	font-family: "Times New Roman", Times, serif;
	font-size: 9px;
	color: #FFFFFF;
  background-color: #336699;
}

.dingbat {
	font-family: Arial, Helvetica, sans-serif;
	background-color: #99CC99;
  color: #006666; 
	font-weight: bolder;
	font-size: medium;
}

a:hover {
	text-decoration: underline;
}

input.big {
	width: 100px;
}

input.small {
	width: 50px;
}

.sb{height:2em;width:5.6em;font-size:13px;}
.STYLE7 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 28px;
	line-height: 30px;
	color: #666666;
	font-weight: bold;
}
.STYLE8 {font-family: ""; font-size: 14px; font-weight: bold; vertical-align: 0%; text-decoration: underline; }


div.gn_storytitle
{
	clear: both;
	font-size: 80%;
	font-weight: bold;
	line-height: 1.1;
	background-color: #dee7ec;
	margin: 0px;
	padding: 5px 5px 8px 8px;
}

div.gn_storydetails,td
{
	clear: both;
	font-size: 120%;
	margin: 3px;
	padding: 8px 10px;
}

-->
</style>

<body>
<form action="search" method="get" name="searchform"  id="searchform">
            <input name="s"  type="text" id="s" size="45"  height="20" title="Divide keywords with SPACE " value='$search' /><input type="submit" value="Search Local" /><div align='right'><a href='/'>back to home page</a></div>
            <input type=hidden name='begin' value=0 />
            <input type=hidden name='size' value=$rsize />
			  </form>

There are <b>$rssize</b> in total <b>$rscount</b> results(s) in this page (<b>$tcost</b> seconds) :<em> <b>$search</b></em><div align=right><a href=$nurl >
$if has_next == True:
    Next $size results</a></div>

$if not results:
    $info

<hr>
$if results:
    <div class='gn_storydetails' align='left'>
    $for rs in results:
        <li><a target='hframe' href='redir?p=$rs.filename64' >$rs.filename</a><br>$rs.summary&nbsp;&nbsp;&nbsp;<br><font color=gray><em><a target='blank' href='/snapshot?c=$rs.docid64'>Snapshot</a>&nbsp;&nbsp;&nbsp;Rating=$rs.rating&nbsp;&nbsp;&nbsp;<a target='hframe' href='folder?p=$rs.path64' >open folder</a></em></font><br><br>
		<br>
    </div>
	<hr>
	
$if has_next == True:
    <div align=center>
    <a href=$nurl >Next $size results</a>

	</div>
<iframe name='hframe'width=0 heigth=0 />
</body>